#include<stdio.h>
#include<unistd.h>
#include <sys/types.h>
int main()
{
  printf("parent process: pid: %d ppid: %d\n",getpid(),getppid());

  pid_t ret = fork();

  printf("ret: %d pid: %d ppid: %d\n",ret,getpid(),getppid());
  sleep(1);




/*
  while(1)
  {
    printf("hello pid:%d  ppid:%d\n",getpid(),getppid());
    sleep(1);
  }
*/ 
  return 0;
}
